package com.yumi.shizhan;

import org.springframework.stereotype.Component;

@Component("moSize")
public class MoSize implements InkDao{
    private String color;

    public MoSize() {
    }

    public MoSize(String color) {
        this.color = color;
    }

    @Override
    public int testInk(Entity entity) {
        System.out.println("这是一张使用墨色打印的的" + entity.getSize() + "纸");
        return 1;
    }

    /**
     * 获取
     * @return color
     */
    public String getColor() {
        return color;
    }

    /**
     * 设置
     * @param color
     */
    public void setColor(String color) {
        this.color = color;
    }

    public String toString() {
        return "MoSize{color = " + color + "}";
    }
}
